package com.zf.yichat.model;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "user_withdraw")
public class UserWithdraw implements Serializable {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Long userId;

    /**
     * 0提交申请  1审核通过  2拒绝申请 3 线下转账 4 处理中
     */
    private Integer status;

    @Column(name = "bank_number")
    private String bankNumber;

    private String memo;

    private BigDecimal money;

    /**
     * 审核时间
     */
    @Column(name = "check_time")
    private Date checkTime;

    /**
     * 拒绝原因
     */
    @Column(name = "refuse_reason")
    private String refuseReason;

    private Date ctime;

    private Date utime;

    @Column(name = "bank_name")
    private String bankName;

    @Column(name = "future_money")
    private BigDecimal futureMoney;

    private String detail;

    @Column(name = "parent_code")
    private String parentCode;
    @Column(name = "parent_user_id")
    private String parentUserId;
    @Column(name = "parent_user_nick")
    private String parentUserNick;
    @Column(name = "parent_user_phone")
    private String parentPhone;
    @Column(name = "user_nick")
    private String userNick;
    @Column(name = "card_name")
    private String cardName;
    @Column(name = "card_no")
    private String cardNo;
    @Column(name = "card_bank")
    private String cardBank;
    @Column(name = "card_bank_child")
    private String cardBankChild;

    /**
     * type, "hj"汇聚， "xs"新生
     */
    private Integer type;

    private static final long serialVersionUID = 1L;

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentUserId() {
        return parentUserId;
    }

    public void setParentUserId(String parentUserId) {
        this.parentUserId = parentUserId;
    }

    public String getParentUserNick() {
        return parentUserNick;
    }

    public void setParentUserNick(String parentUserNick) {
        this.parentUserNick = parentUserNick;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getCardBank() {
        return cardBank;
    }

    public void setCardBank(String cardBank) {
        this.cardBank = cardBank;
    }

    public String getCardBankChild() {
        return cardBankChild;
    }

    public void setCardBankChild(String cardBankChild) {
        this.cardBankChild = cardBankChild;
    }

    public UserWithdraw(Integer id, Long userId, Integer status, String bankNumber, String memo, BigDecimal money, Date checkTime, String refuseReason, Date ctime, Date utime, String bankName, BigDecimal futureMoney, String detail, Integer type) {
        this.id = id;
        this.userId = userId;
        this.status = status;
        this.bankNumber = bankNumber;
        this.memo = memo;
        this.money = money;
        this.checkTime = checkTime;
        this.refuseReason = refuseReason;
        this.ctime = ctime;
        this.utime = utime;
        this.bankName = bankName;
        this.futureMoney = futureMoney;
        this.detail = detail;
        this.type = type;
    }

    public UserWithdraw() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取0提交申请  1审核通过  2拒绝申请
     *
     * @return status - 0提交申请  1审核通过  2拒绝申请 3线下转账
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0提交申请  1审核通过  2拒绝申请
     *
     * @param status 0提交申请  1审核通过  2拒绝申请
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return bank_number
     */
    public String getBankNumber() {
        return bankNumber;
    }

    /**
     * @param bankNumber
     */
    public void setBankNumber(String bankNumber) {
        this.bankNumber = bankNumber == null ? null : bankNumber.trim();
    }

    /**
     * @return memo
     */
    public String getMemo() {
        return memo;
    }

    /**
     * @param memo
     */
    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    /**
     * @return money
     */
    public BigDecimal getMoney() {
        return money;
    }

    /**
     * @param money
     */
    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    /**
     * 获取审核时间
     *
     * @return check_time - 审核时间
     */
    public Date getCheckTime() {
        return checkTime;
    }

    /**
     * 设置审核时间
     *
     * @param checkTime 审核时间
     */
    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    /**
     * 获取拒绝原因
     *
     * @return refuse_reason - 拒绝原因
     */
    public String getRefuseReason() {
        return refuseReason;
    }

    /**
     * 设置拒绝原因
     *
     * @param refuseReason 拒绝原因
     */
    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason == null ? null : refuseReason.trim();
    }

    /**
     * @return ctime
     */
    public Date getCtime() {
        return ctime;
    }

    /**
     * @param ctime
     */
    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    /**
     * @return utime
     */
    public Date getUtime() {
        return utime;
    }

    /**
     * @param utime
     */
    public void setUtime(Date utime) {
        this.utime = utime;
    }

    /**
     * @return bank_name
     */
    public String getBankName() {
        return bankName;
    }

    /**
     * @param bankName
     */
    public void setBankName(String bankName) {
        this.bankName = bankName == null ? null : bankName.trim();
    }

    /**
     * @return future_money
     */
    public BigDecimal getFutureMoney() {
        return futureMoney;
    }

    /**
     * @param futureMoney
     */
    public void setFutureMoney(BigDecimal futureMoney) {
        this.futureMoney = futureMoney;
    }

    /**
     * @return detail
     */
    public String getDetail() {
        return detail;
    }

    /**
     * @param detail
     */
    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}